package com.dmall.netty.chapter07.section72;

import java.io.Serializable;

public class UserInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private int age;
	private String name;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public UserInfo buildAge(int age) {
		this.age = age;
		return this;
	}
	
	public UserInfo buildName(String name) {
		this.name = name;
		return this;
	}

	@Override
	public String toString() {
		return "UserInfo [age=" + age + ", name=" + name + "]";
	}
}
